package com.dty.dtycompute.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tdata_ht_pw
 */
@Data
public class TdataHtPw implements Serializable {
    /**
     * 
     */
    private String id;

    /**
     * 
     */
    private String meterid;

    /**
     * 
     */
    private String departid;

    /**
     * 
     */
    private String measureid;

    /**
     * 
     */
    private String meterno;

    /**
     * 
     */
    private Date dt;

    /**
     * 
     */
    private BigDecimal ypw;

    /**
     * 
     */
    private BigDecimal ypwa;

    /**
     * 
     */
    private BigDecimal ypwb;

    /**
     * 
     */
    private BigDecimal ypwc;

    /**
     * 
     */
    private BigDecimal wpw;

    /**
     * 
     */
    private BigDecimal wpwa;

    /**
     * 
     */
    private BigDecimal wpwb;

    /**
     * 
     */
    private BigDecimal wpwc;

    /**
     * 
     */
    private BigDecimal pwfactor;

    /**
     * 
     */
    private BigDecimal pwfactora;

    /**
     * 
     */
    private BigDecimal pwfactorb;

    /**
     * 
     */
    private BigDecimal pwfactorc;

    /**
     * 
     */
    private BigDecimal spw;

    /**
     * 
     */
    private BigDecimal spwa;

    /**
     * 
     */
    private BigDecimal spwb;

    /**
     * 
     */
    private BigDecimal spwc;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TdataHtPw other = (TdataHtPw) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMeterid() == null ? other.getMeterid() == null : this.getMeterid().equals(other.getMeterid()))
            && (this.getDepartid() == null ? other.getDepartid() == null : this.getDepartid().equals(other.getDepartid()))
            && (this.getMeasureid() == null ? other.getMeasureid() == null : this.getMeasureid().equals(other.getMeasureid()))
            && (this.getMeterno() == null ? other.getMeterno() == null : this.getMeterno().equals(other.getMeterno()))
            && (this.getDt() == null ? other.getDt() == null : this.getDt().equals(other.getDt()))
            && (this.getYpw() == null ? other.getYpw() == null : this.getYpw().equals(other.getYpw()))
            && (this.getYpwa() == null ? other.getYpwa() == null : this.getYpwa().equals(other.getYpwa()))
            && (this.getYpwb() == null ? other.getYpwb() == null : this.getYpwb().equals(other.getYpwb()))
            && (this.getYpwc() == null ? other.getYpwc() == null : this.getYpwc().equals(other.getYpwc()))
            && (this.getWpw() == null ? other.getWpw() == null : this.getWpw().equals(other.getWpw()))
            && (this.getWpwa() == null ? other.getWpwa() == null : this.getWpwa().equals(other.getWpwa()))
            && (this.getWpwb() == null ? other.getWpwb() == null : this.getWpwb().equals(other.getWpwb()))
            && (this.getWpwc() == null ? other.getWpwc() == null : this.getWpwc().equals(other.getWpwc()))
            && (this.getPwfactor() == null ? other.getPwfactor() == null : this.getPwfactor().equals(other.getPwfactor()))
            && (this.getPwfactora() == null ? other.getPwfactora() == null : this.getPwfactora().equals(other.getPwfactora()))
            && (this.getPwfactorb() == null ? other.getPwfactorb() == null : this.getPwfactorb().equals(other.getPwfactorb()))
            && (this.getPwfactorc() == null ? other.getPwfactorc() == null : this.getPwfactorc().equals(other.getPwfactorc()))
            && (this.getSpw() == null ? other.getSpw() == null : this.getSpw().equals(other.getSpw()))
            && (this.getSpwa() == null ? other.getSpwa() == null : this.getSpwa().equals(other.getSpwa()))
            && (this.getSpwb() == null ? other.getSpwb() == null : this.getSpwb().equals(other.getSpwb()))
            && (this.getSpwc() == null ? other.getSpwc() == null : this.getSpwc().equals(other.getSpwc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMeterid() == null) ? 0 : getMeterid().hashCode());
        result = prime * result + ((getDepartid() == null) ? 0 : getDepartid().hashCode());
        result = prime * result + ((getMeasureid() == null) ? 0 : getMeasureid().hashCode());
        result = prime * result + ((getMeterno() == null) ? 0 : getMeterno().hashCode());
        result = prime * result + ((getDt() == null) ? 0 : getDt().hashCode());
        result = prime * result + ((getYpw() == null) ? 0 : getYpw().hashCode());
        result = prime * result + ((getYpwa() == null) ? 0 : getYpwa().hashCode());
        result = prime * result + ((getYpwb() == null) ? 0 : getYpwb().hashCode());
        result = prime * result + ((getYpwc() == null) ? 0 : getYpwc().hashCode());
        result = prime * result + ((getWpw() == null) ? 0 : getWpw().hashCode());
        result = prime * result + ((getWpwa() == null) ? 0 : getWpwa().hashCode());
        result = prime * result + ((getWpwb() == null) ? 0 : getWpwb().hashCode());
        result = prime * result + ((getWpwc() == null) ? 0 : getWpwc().hashCode());
        result = prime * result + ((getPwfactor() == null) ? 0 : getPwfactor().hashCode());
        result = prime * result + ((getPwfactora() == null) ? 0 : getPwfactora().hashCode());
        result = prime * result + ((getPwfactorb() == null) ? 0 : getPwfactorb().hashCode());
        result = prime * result + ((getPwfactorc() == null) ? 0 : getPwfactorc().hashCode());
        result = prime * result + ((getSpw() == null) ? 0 : getSpw().hashCode());
        result = prime * result + ((getSpwa() == null) ? 0 : getSpwa().hashCode());
        result = prime * result + ((getSpwb() == null) ? 0 : getSpwb().hashCode());
        result = prime * result + ((getSpwc() == null) ? 0 : getSpwc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", meterid=").append(meterid);
        sb.append(", departid=").append(departid);
        sb.append(", measureid=").append(measureid);
        sb.append(", meterno=").append(meterno);
        sb.append(", dt=").append(dt);
        sb.append(", ypw=").append(ypw);
        sb.append(", ypwa=").append(ypwa);
        sb.append(", ypwb=").append(ypwb);
        sb.append(", ypwc=").append(ypwc);
        sb.append(", wpw=").append(wpw);
        sb.append(", wpwa=").append(wpwa);
        sb.append(", wpwb=").append(wpwb);
        sb.append(", wpwc=").append(wpwc);
        sb.append(", pwfactor=").append(pwfactor);
        sb.append(", pwfactora=").append(pwfactora);
        sb.append(", pwfactorb=").append(pwfactorb);
        sb.append(", pwfactorc=").append(pwfactorc);
        sb.append(", spw=").append(spw);
        sb.append(", spwa=").append(spwa);
        sb.append(", spwb=").append(spwb);
        sb.append(", spwc=").append(spwc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}